{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/hyb_o2o/template/public/ygcsslist.css">
<style type="text/css">
    .yg5_key>div{float: left;line-height: 34px;}
    .store_td1{height: 45px;}
    .store_list_img{width: 40px;height: 40px;}
    .yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;}
    .yg5_tr2>td{padding: 10px;border: 1px solid #e5e5e5;text-align: center;}
    .yg5_tr1>td{
        border: 1px solid #e5e5e5;
        padding-left: 15px;
        background-color: #FAFAFA;
        font-weight: bold;
        text-align: center;
    }
    .yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
    .jfbtn{background-color: #44ABF7;color: white;}
    .jfbtn:hover{background-color: #44ABF7;color: white;}
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li class="active"><a href="javascript:void(0);">会员列表</a></li>
</ul>
<div class="main">
    <div class="panel panel-default">
        <div class="panel-body">
        <form action="" method="get" class="col-md-12 input-group" style="display: flex;">
              <input type="hidden" name="c" value="site" />
              <input type="hidden" name="a" value="entry" />
              <input type="hidden" name="m" value="hyb_o2o" />
              <input type="hidden" name="do" value="user" />
            <div class="input-group" style="width: 300px">
                <input type="text" name="keywords" class="form-control" placeholder="请输入会员昵称">
                <span class="input-group-btn">
                    <input type="submit" class="btn btn-default" name="submit" value="查找"/>
                </span>
                
            </div>
            
            <input type="hidden" name="token" value="{$_W['token']}"/>
            
        </form>
        </div>
    </div>
    

</div>

    <div class="panel panel-default">
        <div class="panel-heading">
            会员列表
        </div>
        <div class="panel-body" style="padding: 0px 15px;">
            <div class="row">
                <table class="yg5_tabel col-md-12" id="test_table">
                    <tr class="yg5_tr1" >
                        <!-- <th class="col-md-1" style="text-align: center;">
                            <input type="checkbox" class="allcheck" />
                            <span class="store_inp">全选</span>
                        </th> -->
                        <th class="col-md-1" style="text-align: center;padding: 8px;">id</th>
                        <th class="col-md-1" style="text-align: center;">会员昵称</th>
                        <th class="col-md-1" style="text-align: center;">会员头像</th>
                        
                        <th class="col-md-1" style="text-align: center;">会员openid</th>
                        <th class="col-md-1" style="text-align: center;">到期时间</th>
                        <th class="col-md-1" style="text-align: center;">积分</th>
                        <th class="col-md-1" style="text-align: center;">钱包余额</th>
                        <th class="col-md-1" style="text-align: center;">是否入驻</th>
                        <!-- <th class="col-md-1" style="text-align: center;">是否成为分销商</th> -->
                        <th class="col-md-1" style="text-align: center;">充值</th>
                        <!-- <th class="col-md-1" style="text-align: center;">提现记录</th> -->
                        <th class="col-md-2" style="text-align: center;">操作</th>
                    </tr>
                      {loop $list  $row}
                    <tr class="yg5_tr2">
                        <!-- <td>
                            <input type="checkbox" name="test" value="{$row['u_id']}">
                        </td> -->
                        <td >{$row['u_id']}</td>
                        
                        <td style="margin-right: 10px;">{$row['u_name']}</td>
                        <td style="margin-right: 10px;"><img class="store_list_img" src="{$row['u_thumb']}"/></td>
                        <td>{$row['openid']}</td>
                        <td>
                          {$row['u_typeendtime']}
                          {if $row['u_type']!=0 && $row['u_typeendtime']<=date("Y-m-d H:i:s",time())}
                            <a class="btn btn-default btn-sm"  style="color:red" href="{php echo $this->createWeburl('user', array('u_id' => $row['u_id'], 'op' => 'save'))}">已到期[请点击修改状态]</a>
                          {/if}
                          {if $row['u_type']==0 }无{/if}
                        </td> 
                        <td>{$row['u_jifen']}</td>
                        <td>{$row['u_money']}</td>
                        <td>{if $row['u_shangjia']!=0}是{else}否{/if}</td>
                        <!-- <td>{if $row['u_fenxiao']!=0}是{else}否{/if}</td> -->
                        <td>
                          <a href="javascript:void(0);" data-toggle="modal" data-target="#myModalb{$row['u_id']}" data-u_id="{$row['u_id']}"><span class="btn btn-xs ygyouhui2" style="margin-bottom: 5px">充值余额</span> </a>
                          <a href="javascript:void(0);" data-toggle="modal" data-target="#myModala2{$row['u_id']}" ><span class="btn btn-xs ygshouqian2">充值积分</span> </a>
                          
                        </td> 
<!--                         <td>
                          <a class="btn jfbtn btn-xs" href="{php echo $this->createWebUrl('user', array('u_id' => $row['u_id'],'op'=>'list'))}">查看记录</a>
                        </td>  -->
                        <td>
                          <a href="{php echo $this->createWebUrl('user', array('u_id' => $row['u_id'],'op'=>'delete'))}" class="storespan btn btn-xs" >
                              <span class="fa fa-trash-o"></span>
                              <span class="bianji">删除
                                  <span class="arrowdown"></span>
                              </span>
                          </a>
                        </td>                 
                    </tr>

                    <div class="modal fade" id="myModalb{$row['u_id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                      <div class="modal-dialog" role="document" style="min-width: 300px!important;width: 250px;">
                          <form action="" method="post" enctype="multipart/form-data">
                              <div class="modal-content">
                                  <div class="modal-header">
                                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                      <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">编辑充值金额</h4>
                                  </div>
                                  <div class="modal-body" style="font-size:20px">
                                      <input type="number" name="reply" class="accout_inp col-md-9" placeholder="请输入金额">
                                  </div>
                                  <div class="modal-footer">
                                      <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                      <input type="submit" name="submit2" class="btn btn-info" value="确定">
                                      <input type="hidden" name="token" value="{$_W['token']}"/>
                                      <input type="hidden" name="id2" value="{$row['u_id']}"/>
                                  </div>
                              </div>
                          </form>
                      </div>
                  </div>
                  <div class="modal fade" id="myModala2{$row['u_id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                      <div class="modal-dialog" role="document" style="min-width: 300px!important;width: 250px;">
                          <form action="" method="post" enctype="multipart/form-data">
                              <div class="modal-content">
                                  <div class="modal-header">
                                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                      <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">编辑积分数量</h4>
                                  </div>
                                  <div class="modal-body" style="font-size:20px">
                                      <input type="number" name="reply" class="accout_inp col-md-9" placeholder="请输入积分">
                                  </div>
                                  <div class="modal-footer">
                                      <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                      <input type="submit" name="submit3" class="btn btn-info" value="确定">
                                      <input type="hidden" name="token" value="{$_W['token']}"/>
                                      <input type="hidden" name="id3" value="{$row['u_id']}"/>
                                  </div>
                              </div>
                          </form>
                      </div>
                  </div>
                  {/loop}
                </table>
            </div>
        </div>
    </div>
</div>
<div class="text-right we7-margin-top">
     {$pager}
</div>

<script type="text/javascript">
    $(function(){
        $("#frame-4").show();
        $("#yframe-4").addClass("wyactive");
    })
</script>
{template "common/footer"}